package com.shuma.model.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 商品下单时间
     */
    private LocalDateTime createTime;

    /**
     * 支付方式(纯积分(0)积分＋现金(1)纯现金(2))
     */
    private String payWay;

    /**
     * 金额
     */
    private BigDecimal price;

    /**
     * 积分
     */
    private Integer integrate;


}
